<!-- Faraday Penetration Test IDE -->
<!-- Copyright (C) 2013  Infobyte LLC (http://www.infobytesec.com/) -->
<!-- See the file 'doc/LICENSE' for the license information -->

<form name="uploadForm" >
    <div class="modal-header">
        <h3 class="modal-title">Import CSV</h3>
    </div>
    <div class="modal-body">
        <!-- <input type="file" id="file" name="file"/> -->
        <!-- <button ng-click="_import()">Upload</button> -->
        <span class="help-block">
            <p> Please note the CSV headers must be: cwe, name, description, resolution, exploitation, references.</p>
            <p> All of these are optional except for the name column.</p>
            <p> Also keep in mind there we ship with some useful CSV which you can find at $FARADAY/data/*.csv </p>
        </span>
        <input type="file" id="file" name="file" accept=".csv" ng-model="filename" valid-file required/>
    </div><!-- .modal-body -->
    <div class="modal-footer">
        <div class="modal-button btn-toolbar">
            <button class="btn btn-success" ng-disabled="uploadForm.$invalid" ng-click="_import()">OK</button>
            <button class="btn btn-danger" ng-click="cancel()">Cancel</button>
        </div>
    </div>
</form>
